package org.melanesia.beans;

import java.util.Map;

class MapGetter implements Getter {

    private String property;

    MapGetter(String property) {
        this.property = property;
    }
    
    @Override
    @SuppressWarnings({ "rawtypes" })
    public Object get(Object bean) {
        return ((Map)bean).get(property);
    }

    @Override
    public Class<?> getReturnType() {
        return Object.class;
    }
}
